Documentation for class timer

Inherits from 	complex_object 

Properties declared in timer 
	action 
	is_enabled 
	period 
	priority 
	target 

Class Methods declared in timer 

Methods declared in timer 
	any 
		action 
		do_action 
		is_enabled 
		period 
		priority 
		set_action(message_name) 
		set_is_enabled(boolean) 
		set_period(number) 
		set_priority(number) 
		set_target(object) 
		target 
	events 
		do_action 
	get 
		action 
		is_enabled 
		period 
		priority 
		target 
	set 
		set_action(message_name) 
		set_is_enabled(boolean) 
		set_period(number) 
		set_priority(number) 
		set_target(object) 

Class 
#begin_class
timer 
The class timer is a subclass of the class complex_object. 
Timers are objects that are triggered at specific intervals.
A timer may either have a target and an action specified or it may have its own do_action method that is executed each time the timer is triggered.
#end_class

Properties 

#begin_property
action 
Stores the name of the action message that is used by the default implementation of the do_action method. The action message is sent to the object specified by the target property. See the do_action method description for the class control for details.
#end_property

#begin_property
is_enabled 
Stores a boolean value. It is true if the timer is active. Otherwise it is false.
#end_property

#begin_property
period 
Stores the interval between each execution of the timer in seconds. Default is 1 second.
#end_property

#begin_property
priority 
Stores the mach priority of the timer (1 - 30). Default is 30.
#end_property

#begin_property
target 
Stores an object that receives the action message specified by the action property. When the object receives a do_action message it sends the action message to the target. See the do_action method description for the class control for details.
#end_property

Methods 

#begin_method
action 
Returns the action property of the timer.
#end_method

#begin_method
do_action 
Sends the action message to the object target. See the do_action method description for the class control for details.
Returns self.
#end_method

#begin_method
is_enabled 
Returns the is_enabled property of the timer.
#end_method

#begin_method
period 
Returns the period property of the timer.
#end_method

#begin_method
priority 
Returns the priority property of the timer.
#end_method

#begin_method
set_action(message_name) 
Sets the action property to the symbol message_name. 
Returns self.
#end_method

#begin_method
set_is_enabled(boolean) 
Sets the is_enabled property to boolean. 
Returns self.
#end_method

#begin_method
set_period(number) 
Sets the period property to number. 
Returns self.
#end_method

#begin_method
set_priority(number) 
Sets the priority property to number. 
Returns self.
#end_method

#begin_method
set_target(object) 
Sets the target property to object. 
Returns self.
#end_method

#begin_method
target 
Returns the target property of the timer.
#end_method

Class Methods